package com.hxzy.service.impl;

import com.hxzy.dto.back.ContamerSearchDTO;
import com.hxzy.entity.Contamer;
import com.hxzy.mapper.ContamerMapper;
import com.hxzy.service.ContamerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContamerServiceImpl extends ServiceImpl<Contamer,Long>  implements ContamerService {

    private ContamerMapper  contamerMapper;

    @Autowired
    public void setContamerMapper(ContamerMapper contamerMapper) {
        this.contamerMapper = contamerMapper;
        super.setMyBatisBaseDao(contamerMapper);

    }

    @Override
    public List<Contamer> search(ContamerSearchDTO searchDTO) {
        return this.contamerMapper.search(searchDTO);
    }
}
